package com.qin.malldiscount.service;

import com.qin.malldiscount.domain.SmsFlashPromotionSession;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qin.malldiscount.dto.SmsFlashPromotionSessionDetail;

import java.util.List;

/**
 * 限时购场次管理Service
* @author 覃剑
* @description 针对表【sms_flash_promotion_session(限时购场次表)】的数据库操作Service
* @createDate 2022-11-23 19:34:44
*/
public interface SmsFlashPromotionSessionService extends IService<SmsFlashPromotionSession> {

    /**
     * 添加场次
     */
    int create(SmsFlashPromotionSession promotionSession);

    /**
     * 修改场次
     */
    int update(Long id, SmsFlashPromotionSession promotionSession);

    /**
     * 修改场次启用状态
     */
    int updateStatus(Long id, Integer status);

    /**
     * 删除场次
     */
    int delete(Long id);

    /**
     * 获取详情
     */
    SmsFlashPromotionSession getItem(Long id);

    /**
     * 根据启用状态获取场次列表
     */
    List<SmsFlashPromotionSession> getList();

    /**
     * 获取全部可选场次及其数量
     */
    List<SmsFlashPromotionSessionDetail> selectList(Long flashPromotionId);
}
